import request from '@/utils/request'

// 查询平台订单状态映射表列表
export function listRelationship(query) {
  return request({
    url: '/conf/relationship/list',
    method: 'get',
    params: query
  })
}

// 查询平台订单状态映射表详细
export function getRelationship(orderStatus) {
  return request({
    url: '/conf/relationship/' + orderStatus,
    method: 'get'
  })
}

// 新增平台订单状态映射表
export function addRelationship(data) {
  return request({
    url: '/conf/relationship',
    method: 'post',
    data: data
  })
}

// 修改平台订单状态映射表
export function updateRelationship(data) {
  return request({
    url: '/conf/relationship',
    method: 'put',
    data: data
  })
}

// 删除平台订单状态映射表
export function delRelationship(orderStatus) {
  return request({
    url: '/conf/relationship/' + orderStatus,
    method: 'delete'
  })
}
